<!DOCTYPE html>
<html lang="en">
  <head>
	<?php include_http_metas() ?>
	<?php include_metas() ?>
	<?php include_title() ?>
	<link rel="shortcut icon" href="/favicon.ico" />
	<?php include_stylesheets() ?>
    <script src="http://code.jquery.com/jquery-latest.min.js"></script>
    <script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.4/jquery-ui.min.js"></script>
    <script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.4/i18n/jquery.ui.datepicker-pt-BR.js"></script>
    <link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.4/themes/base/jquery-ui.css" type="text/css" />
    <script type="text/javascript" src="<?php echo $sf_context->getRequest()->getRelativeUrlRoot(); ?>/js/tinymce/jscripts/tiny_mce/tiny_mce.js"></script>
    <script type="text/javascript">var BASEURL = "<?php echo $sf_context->getRequest()->getRelativeUrlRoot(); ?>";</script>
  </head>

  <body>
	<?php if($sf_user->isAuthenticated()): ?>
    <div class="navbar navbar-fixed">
      <div class="navbar-inner">
        <div class="container">
          <a class="brand" href="<?php echo url_for('@homepage'); ?>"><?php echo sfConfig::get('app_titulo_aplicacao'); ?></a>
          <div>
		          <?php 
		              $menu = new sfCreatixMenu($sf_user, 'menu', 'menu', 'h', 'nav nav-pills');
		          ?>
	            <ul class="nav pull-right">
	            	<li class="dropdown" id="fat-menu">
	                	<a data-toggle="dropdown" class="dropdown-toggle" href="#">Bem vindo(a) <?php echo $sf_user->getGuardUser()->getUserName(); ?><b class="caret"></b></a>
	                    <ul class="dropdown-menu">
	                      <li><a href="<?php echo url_for('@reset')?>">Menus dados</a></li>
	                      <li><a href="<?php echo url_for('@sf_guard_signout'); ?>">Sair do sistema</a></li>
	                    </ul>
	                  </li>
	            </ul>
          </div><!--/.nav-collapse -->
        </div>
      </div>
    </div>
    <?php endif; ?>
    <!-- Message -->
	
	<div id="modal-content"></div>
	
    <div class="container-fluid">
    	
      	
			<div id="mensagens">
				<?php include_component('creatix', 'mensagem'); ?>
			</div><!--
			
      <div class="subnav">
      	<?php 
              //$menu = new sfCreatixMenu($sf_user, 'menu', 'menu', 'h', 'nav nav-pills');
          ?>
      	
      </div>
      
		-->
		<div class="sub-container curved">
		<?php echo $sf_content ?>
		</div>
	<hr>
	
    <footer>
        <p>Sistema IBE | Todos os direitos reservados <?php echo date('Y');?> | Desenvolvido por Creatix</p>
      </footer>
	</div><!--/.fluid-container-->
  </body>
</html>
